package leetcode.code0327;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution327 implements IDebug {

	public abstract int countRangeSum(int[] nums, int lower, int upper);

	@Override
	public void debug1() {
		int r = this.countRangeSum(HelpDebug.str2array3("[-2,5,-1]"), -2, 2);
		int e = 3;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int r = this.countRangeSum(HelpDebug.str2array3("[0]"), 0, 0);
		int e = 1;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		int r = this.countRangeSum(HelpDebug.str2array3("[-2,5,-1,-2,5,-1,-2,5,-1]"), -2, 3);
		int e = 23;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		int r = this.countRangeSum(HelpDebug.str2array3("[-2,5,-1,-2]"), -2, 3);
		int e = 7;
		HelpDebug.compare(e, r);
	}

}
